package org.dengyiqian.fraud;

import org.dengyiqian.fraud.FraudCheckHistory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FraudCheckHistoryRepository
        extends JpaRepository<FraudCheckHistory, Integer> {
    List<FraudCheckHistory> findAllByEmailAndIsFraudster(String email, boolean isFraudster); // 添加一个通过email查询欺诈行为记录的方法,注意isFraudster字段为true的才是欺诈行为，后面service层调用使用
}